<foreach name="agents" item="agent">
    <tr>
        <td><input type="checkbox" class="check_list" name="agent_id[]" value="{$agent['agent_id']}"/></td>
        <td>{$agent.agent_id}</td>
        <td>{$agent.agent_name}</td>
        <td>{$agent.mobile}</td>
        <td>{$agent.email}</td>
        <td>{$agent.money}</td>
        <td>
            <if condition='$agent[u_status] eq 1'>
                <strong class="yes">正常</strong>
                <elseif condition="$agent[u_status] eq '0'"/>
                <strong class="red_common">关闭</strong>
                <else/><strong class="no">待审核</strong>
            </if>
        </td>
        <td>
            <a href="{:U('Members/member_view',array('id'=>$agent['agent_id']))}" class="btn btn-blue">查看</a>
            <a onclick="money_edit({$agent.agent_id})" href="javascript:;" class="btn btn-blue">充值</a>
            <a href="{:U('Members/member_edit',array('id'=>$agent['agent_id']))}" class="btn btn-blue">修改</a>
            <!--<if condition="$agent['u_status'] eq 2">-->
                <!--<a href="{:U('Agent/agent_audit',array('id'=>$agent['agent_id']))}" class="btn btn-blue">审核</a>-->
            <!--</if>-->
        </td>
    </tr>
</foreach>
<tr><td colspan="8">{$page}</td></tr>

<script type="text/javascript">
    $(document).ready(function(){
        $(".pagination a").click(function(){
            cur_page = $(this).data('p');
            ajax_get_table(cur_page);
        });
    });
</script>